#!/bin/bash

# ----------------------------------------------------------------------
# Filename:   75635-getsebool.sh
# Version:    1.0
# Date:       2013/12/17
# Author:     yuanhui.shi
# Email:      yuanhui.shi@cs2c.com.cn
# Summary:    03系统安全功能-01SELinux-03SELinux重要命令-02SELinux策略值-01getsebool
# Notes:      getsebool策略值查询
# Copyright:  China Standard Software Co., Ltd.
# History：     
#             Version 1.0, 2013/12/17
#             -   The first one
# ----------------------------------------------------------------------

PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH

source ../../lib/Echo.sh
source ../../lib/XmlParse.sh
source ./lib/Selib.sh

function CleanData ()
{
  
  EchoInfo "75635-getsebool.sh执行完毕"
}

trap "CleanData" EXIT

CheckSElinuxStatus

EchoInfo "检验getsebool命令执行结果是否正确"
getsebool -a &>/dev/null 
EchoResult "getsebool-a 命令查询所有策略值"

getsebool allow_console_login
EchoResult "getsebool allow_console_login命令只显示指定策略值"
